import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  // path: '/levelSetting',
  // component: () => import('@/views/levelSetting/index.vue'),
  // name: 'levelSetting',
  // meta: {
  //   // title: $t('route.tabbar'),
  //   title: '级别设置',
  //   icon: 'ic:outline-class',
  //   singleMenu: true,
  // },

  path: '/clientAccountLabel',
  component: Layout,
  redirect: '/clientAccountLabel/index',
  name: 'clientAccountLabel',
  meta: {
    title: '客户端客户标签',
    icon: 'ic:outline-class',
  },
  children: [
    {
      path: 'index',
      name: 'clientAccountLabelIndex',
      component: () => import('@/views/clientAccountLabel/index.vue'),
      meta: {
        title: '客户端客户标签',
        menu: false,
        breadcrumb: false,
        activeMenu: '/clientAccountLabel',
      },
    },
    {
      path: 'detail',
      name: 'clientAccountLabelDetail',
      component: () => import('@/views/clientAccountLabel/detail.vue'),
      meta: {
        title: '客户端客户标签详情',
        auth: ['permission.browse'],
        menu: false,
        breadcrumb: false,
        activeMenu: '/clientAccountLabel',
      },
    },
  ],
}

export default routes
